package export.pet
{
	import export.bullet.EnemyMoveBullet;
	
	public class PetMouse4Bullet3 extends EnemyMoveBullet
	{
		
		public function PetMouse4Bullet3(param1:String)
		{
			super(param1);
		}
		
		private var isBack:Boolean = false;
		
		override public function step2():void
		{
			super.step2();
			if (!this.isBack)
			{
				if (this.velocity.x == 0)
				{
					this.setMoveTarget(this.owner);
					this.setSpeedAdd(0, 0);
					this.addSpeedValue = 1;
					this.isBack = true;
				}
			}
			else if (AUtils.GetDisBetweenTwoObj(this, this.owner) <= 30)
			{
				this.destroy();
			}
		}
	}
}
